package cn.tedu.baidashi.service;

import cn.tedu.baidashi.model.Address;
import cn.tedu.baidashi.model.City;
import cn.tedu.baidashi.model.Province;
import cn.tedu.baidashi.model.Zone;
import cn.tedu.baidashi.vo.AddressVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tedu.cn
 * @since 2022-02-19
 */
public interface IOrderAddressService extends IService<Address> {
    List<Address> getAddressesByUserName(String username);
    Address getAddressByUserNameAndAddressId(Integer addressId, String username);
    Address addAddress(AddressVo addressVO, String username);
    Address updateAddress(Integer addressId,AddressVo addressVO, String username);
    List<Province> getProvinces();
    List<City> getCitysByProvinceId(Integer provinceId);
    List<Zone> getZonesByCityId(Integer cityId);
    List<City> getCitysByProvinceName(String provinceName);
    List<Zone> getZonesByCityName(String cityName);
}
